<?php

use App\controllers\UserController;
use Core\BeanFactory;
use Core\init\RouterCollect;

require_once __DIR__ . "/vendor/autoload.php";

require_once __DIR__ . "/app/config/define.php"; //自定义配置
BeanFactory::init();//初始化Bean工厂

$user = BeanFactory::getBean("user"); //从IoC容器中加载出 我们所需要的Bean

var_dump($user);
$RouterCollect = BeanFactory::getBean('RouterCollect'); //从IoC容器中加载出 我们所需要的Bean

var_dump($RouterCollect->router);
